﻿using ProcessLib.Ratp.Page.Processors;

namespace ProcessLib.Ratp.Page.Region;

public class SemanticParagraph
{
    // 语义段落
    public List<LineRegion>? LineRegions
    {
        get;
        set;
    } = new();

    public string? FontFamily
    {
        get;
        set;
    }

    public int x = 0;
    public override string ToString()
    {
        var res = $"SemanticParagraph: {GetHashCode()}\n";
        foreach (var lineRegion in LineRegions)
        {
            res += $"line: {lineRegion.Div}\n";
        }

        res += $"font-family: {FontFamily}\n";
        return res;
    }
}